package com.finalproject.ui;
/**
 * UiHelper class
 */
import java.awt.Component;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;

import javax.swing.JOptionPane;

public class UIHelper {
	
	public static final DecimalFormat currencyFormat = new DecimalFormat("$0.00");
	
	public static final DecimalFormat parseCurrencyFormat = new DecimalFormat("#.##");
	
	public static final SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyy hh:mm:ss");
	

	public static final SimpleDateFormat chartDateFormat = new SimpleDateFormat("MM/dd");
	public static void showErrorMessage(Component c, String error) {
		JOptionPane.showMessageDialog(c, error, "Error",JOptionPane.ERROR_MESSAGE);

	}
	
	public static void showConfirmMessage(Component c, String message) {
		JOptionPane.showMessageDialog(c, message, "Confirmation Message",JOptionPane.INFORMATION_MESSAGE);

	}

}
